let LocationServer = require('../server/locationServer');

exports.getLocation = function (params) {
    return new Promise(function (resolve, reject) {
        LocationServer.requestLocation(params).then((response) => {
            resolve(response);
        })
    });
}